|
|
|
| |
|
|
|
|
Visual Data Manager is also one of the sample applications that can be found in the Visual Basic Samples. Examining this project can provide you with a tremendous education in creating database applications in Visual Basic. |
|
|
|
|
|
|
|
|
|
|
Creating the Database File |
|
|
|
|
|
|
|
|
The first step in creating a new database is to create the database file itself. This file provides a physical location for the rest of your work. To create this file in Visual Data Manager, perform the following steps: |
|
|
|
|
|
|
|
|
1. Choose File, New to bring up a submenu that allows you to specify the type of database to create. |
|
|
|
|
|
|
|
|
2. For the purpose of this discussion, create an Access (Jet) database by choosing the Microsoft Access item. This action brings up another submenu from which you can choose the version of Access database to create. |
|
|
|
|
|
|
|
|
3. If you plan to share data with users on a Windows 3.1 system, you should choose the 2.0 version; otherwise, choose the 7.0 version. Figure 24.10 shows the different menu levels for creating a database. |
|
|
|
|
|
|
|
|
After you choose the type of database, you are presented with the Select Microsoft Access Database to Create dialog box. This dialog box allows you to choose a name and folder for your database. |
|
|
|
|
|
|
|
|
Figure 24.10
The menus allow you to choose the
type and version of database to create. |
|
|
|
|
|
|
|
|
4. Enter a name and select a folder for your database, and then click the Save button. This action takes you to the design mode shown in Figure 24.11. |
|
|
|
|
|
|
|
|
The Visual Data Manager presents the database information in a tree-like view. This type of view allows you to see the tables and queries quickly in the database. It also allows you to open the view further to see the fields and indexes of a table as well as its properties. Finally, you can open the view all the way to see the properties of the individual fields. |
|
|
|
|
|